﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    public partial class TPickingStationDatum
    {
        /// <summary>
        /// 拣选站台数据Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 出库单Id
        /// </summary>
        public int? RelatedOrderId { get; set; }
        /// <summary>
        /// 出库单明细Id
        /// </summary>
        public int RelatedOrderDetailId { get; set; }
        /// <summary>
        /// 拣选出库任务Id
        /// </summary>
        public int? PickingOutTaskId { get; set; }
        /// <summary>
        /// 拣选出库指令Id
        /// </summary>
        public int? PickingOutInstructId { get; set; }
        /// <summary>
        /// 拣选入库任务Id
        /// </summary>
        public int? PickingInTaskId { get; set; }
        /// <summary>
        /// 拣选入库指令Id
        /// </summary>
        public int? PickingInInstructId { get; set; }
        /// <summary>
        /// 出库单号
        /// </summary>
        public string OrderSn { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// 起始地址
        /// </summary>
        public string FromLocationCode { get; set; }
        /// <summary>
        /// 起始地址名称
        /// </summary>
        public string FromLocationName { get; set; }
        /// <summary>
        /// 目的站台Id
        /// </summary>
        public int? ToStationId { get; set; }
        /// <summary>
        /// 目的站台地址
        /// </summary>
        public string ToStationCode { get; set; }
        /// <summary>
        /// 目的站台名称
        /// </summary>
        public string ToStationName { get; set; }
        /// <summary>
        /// 垛条码
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 货主Id
        /// </summary>
        public int? OwnerId { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public int? SupplierId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 当前库存总数
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? TotalQty { get; set; }
        /// <summary>
        /// 拣选数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? PickingQty { get; set; }
        /// <summary>
        /// 状态：1-最新数据；0-过期数据
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 是否已通知PDA
        /// </summary>
        public bool HasNotice { get; set; }
        /// <summary>
        /// 通知时间
        /// </summary>
        public DateTime? NoticeDate { get; set; }
        public int? InventoryId { get; set; }
        public bool? IsMultPallet { get; set; }
        public string RefInvIds { get; set; }
        public int WarehouseId { get; set; }

        /// <summary>
        /// 明细数据
        /// </summary>
        [NotMapped]
        public List<TPickingStationDataDetail> child { get; set; }
    }
}
